#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

int main()
{
    FILE *fp = NULL;

    fp = fopen("./DiffDatafile.csv","w+");

    int i = 0;
    while(i < 500) {
        fprintf(fp,"%d",i);
        fprintf(fp,"%c",',');
        i++;
    }
    fprintf(fp,"%d",i);
    fprintf(fp,"\n");

    i = 0;
        fprintf(fp,"%s","PID");
        fprintf(fp,"%c",',');
    while(i < 500) {
        fprintf(fp,"%d",i);
        fprintf(fp,"%c",',');
        i++;
    }
    fprintf(fp,"%d",i);
    fprintf(fp,"\n");
    i = 0;
        fprintf(fp,"%s","GENETIC");
        fprintf(fp,"%c",',');
    while(i < 1000) {
        fprintf(fp,"%d",i);
        fprintf(fp,"%c",',');
        i+=2;
    }
    fprintf(fp,"%d",i);
    fprintf(fp,"\n");

    fclose(fp);
}
